<template>
<div class="two">
    <div class="contact">
        <h1>CONTACT US</h1>
        <form action="#">
            <input type="text" name="" placeholder=" Your Email*" />
            <textarea rows="10" cols="10" placeholder="Write Your Message*"></textarea>
            <input type="submit" value="SUBMIT" />
        </form>
    </div>
    <div class="img"></div>
</div>
</template>

<script>
export default {

}
</script>

<style scoped>
 /* 二分模块 */
    .contact {
        background-color: #20202a;
        height: 95%;
        width: 60%;
        border-radius: 30px;
        position: absolute;
        top: 10px;
        left: 10px;
        display: inline-block;
    }

    .img {
        display: inline-block;
        height: 100%;
        width: 40%;
        position: absolute;
        top: 30px;
        right: 0px;
        background-color: #20202a;
        border-radius: 30px;
        background: no-repeat url('@/assets/contact.png');
        background-size: cover;
    }

    .contact h1 {
        color: #fff;
        margin: 20px 20px;
    }

 input {
        display: block;
        background-color: #20202a;
        border: #39383e 3px solid;
        height: 50px;
        width: 70%;
        border-radius: 30px;
        text-align: center;
        margin: 0 auto;
        color: #fff;
        font-weight: 800;
        outline: none;
    }

    .contact input:hover,
    .contact textarea:focus,
    .contact textarea:hover,
    .contact input:focus {
        border-color: #2ecc71;
    }

    .contact textarea {
        outline: none;
        text-align: center;
        line-height: 20px;
        display: block;
        width: 70%;
        height: 100px;
        margin: 10px auto;
        background-color: #20202a;
        border: #39383e 4px solid;
        border-radius: 20px;
        color: #fff;
        font-weight: 800;
    }

    .contact input[type="submit"] {
        width: 30%;
    }
</style>